package com.cjl.common.swagger.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author cjl
 * @version v1.0
 * @description TODO
 * @createTime 2023/2/9 16:31
 */

@RestController
@Api(tags = "swaggerController控制器", description = "我是一个控制器", hidden = true)
@RequestMapping("/api/swagger")
public class SwaggerController {

    @PostMapping("/hello")
    @ApiOperation(value = "helloSwagger", notes = "测试。。。", response = Integer.class)
    public String helloSwagger(@RequestParam("id") String id) {
        return "hello swagger" + id;
    }

    @PostMapping("hello2")
    @ApiOperation(value = "helloSwagger2", notes = "测试2。。。")
    public String helloSwagger2() {

        return "hello swagger2";
    }
}
